package model;

public class Doc {
  private int id;
  private String _title;
  private String _abstract;
  private String _keyterms;
  
  public String get_title() {
    return _title;
  }

  public void set_title(String _title) {
    this._title = _title;
  }

  public String get_abstract() {
    return _abstract;
  }

  public void set_abstract(String _abstract) {
    this._abstract = _abstract;
  }

  public Doc(int index, Result result){
    this.id = index;
    this._title = result.getTitle();
    this._abstract = result.getAbstract();
    this._keyterms = result.getKeyterms();
  }
  
  public void setId(int id) {
    this.id = id;
  }
   
  public int getId() {
    return id;
  }

  public String getRawText() {
    //return _title + " " + _abstract;
    //return this._keyterms; 
    return _title + " " + _abstract + " " + _keyterms;
  }
  
  public String debug() {
    return
      "DocID: " + String.valueOf(id) + "\n" +
      "Titulo: " + _title + "\n" + 
      "Abstract: " + _abstract + "\n" + 
      "Termos-chave: " + _keyterms + "\n"; 
  }

  @Override
  public String toString() {
    return String.valueOf(id);
  }
  
  
}
